FUNCTION Allows implementors, senders, etc. to be restricted to a set of categories
ST-VERSIONS R4.1
PREREQUISITES none
DISTRIBUTION world
VERSION ID 1.0
VERSION DATE October 23, 1992
This code adds a 'restrict to ...' item to the Launcher 'Browsers' menu that allows 'implementors', 'senders', etc. to consider only categories matching the set of patterns you provide. For example, giving the patterns
Tools-* Magnitude-*
will cause 'implementors of ...' and its relatives to only display methods in classes that are in categories whose names begin with 'Tools-' or 'Magnitude-'. You can change things back to normal by giving the pattern
*
The System Browser itself is unaffected: it displays all categories just as it always does. It is only 'implementors', 'senders', etc. that act differently. For example, the 'senders' menu item in the method pane of the browser will only find methods in categories matching the given patterns.
This file-in automatically starts up a new Launcher.
N.B.: before you decide a message is unused, you might want to change the browsing restriction back to '*' and re-check senders.
"!
!LauncherView class methodsFor: 'private'!
browseMenu
"Answer a submenu of browsing items"
| keys subMenu |
keys := 'system\class...\senders of...\implementors of...\class examples\restrict to ...'